import { configureStore } from "@reduxjs/toolkit";
import counterReducer  from './modules/counter'



export const store = configureStore({
    reducer: {
        counter: counterReducer
    }
})

export type IRootStore = ReturnType<typeof store.getState>
export type AppDispatch = typeof store.dispatch
export default store